package cn.echoparrot.repository.neo4j;

import cn.echoparrot.domain.entity.Note;
import cn.echoparrot.domain.entity.Notebook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface NoteMapper extends Neo4jRepository<Note, Long> {
    // 通过notebook属性查询，按创建时间降序分页
    Page<Note> findByNotebookId(Long notebookId, Pageable pageable);

}
